<?php
/**
 * BRouteBean.php
 *
 * @author Chen HuiYun <11chenhuiyun@gmail.com>
 * @copyright Copyright &copy; 2012-2020 MyyTaijii Software LLC
 */

/**
 * 
 * @author Chen HuiYun
 */
abstract class BRouteBean
{
	const TYPE_DSP = 'dsp';
	const TYPE_PRE = 'pre';
	const TYPE_ACT = 'act';
	
	//private $_id = Oid::getOid;
	private $_id = '123456';
	
	public function getID()
	{
		return $this->_id;
	}

	abstract function getAction($index);

	abstract function getData($index);

	abstract function getMainObj($index);

	abstract function getRule($index);

	abstract function getSubObj($index);

	abstract function getType($index);

	abstract function setAction($index, $newAction);

	abstract function setData($index, $newData);

	abstract function setMainObj($index, $newMainObj);

	abstract function setRule($index, $newRule);

	abstract function setSubObj($index, $newSubObj);

	abstract function setType($index, $newType);

	abstract function size();
}
